home *** CD-ROM | disk | FTP | other *** search
/ Champak 140 / (Vol 140) Sep 19 2011.iso / Games / red_cross_eru.swf / scripts / __Packages / gamebase / control / MapSoundControl.as < prev    next >
Text File  |  2011-09-19  |  5KB  |  151 lines

  1. §§push(true);
  2. §§push(false);
  3. §§push(false);
  4. §§push(true);
  5. while(true)
  6. {
  7.    if(┬º┬ºpop())
  8.    {
  9.    }
  10.    if(┬º┬ºpop())
  11.    {
  12.    }
  13.    if(┬º┬ºpop())
  14.    {
  15.       break;
  16.    }
  17.    ┬º┬ºpush(true);
  18.    ┬º┬ºpush(false);
  19. }
  20. if(!e.f)
  21. {
  22.    e.f = new g();
  23. }
  24. §§pop();
  25. if(!e.f.h)
  26. {
  27.    e.f.h = new g();
  28. }
  29. §§pop();
  30. if(!e.f.h[§§constant(4)])
  31. {
  32.    f.h[┬º┬ºconstant(4)] extends f[┬º┬ºconstant(5)];
  33.    var _loc2_ = f.h[┬º┬ºconstant(4)] = function()
  34.    {
  35.       super();
  36.    }[┬º┬ºconstant(6)];
  37.    _loc2_[┬º┬ºconstant(7)] = function()
  38.    {
  39.       this[┬º┬ºconstant(8)] = _global[┬º┬ºconstant(9)][┬º┬ºconstant(10)][┬º┬ºconstant(11)];
  40.       this[┬º┬ºconstant(12)] = this[┬º┬ºconstant(8)][┬º┬ºconstant(13)];
  41.       this[┬º┬ºconstant(14)] = this[┬º┬ºconstant(8)][┬º┬ºconstant(15)];
  42.       this[┬º┬ºconstant(16)] = this[┬º┬ºconstant(8)][┬º┬ºconstant(17)][┬º┬ºconstant(18)]();
  43.       this[┬º┬ºconstant(19)] = this[┬º┬ºconstant(8)][┬º┬ºconstant(20)][┬º┬ºconstant(18)]();
  44.       this[┬º┬ºconstant(21)] = this[┬º┬ºconstant(8)][┬º┬ºconstant(22)][┬º┬ºconstant(18)]();
  45.       this[┬º┬ºconstant(23)]();
  46.       this[┬º┬ºconstant(24)] = 0;
  47.       this[┬º┬ºconstant(25)] = f[┬º┬ºconstant(27)][┬º┬ºconstant(28)][┬º┬ºconstant(29)](10000,50,┬º┬ºconstant(26));
  48.       this[┬º┬ºconstant(30)] = _global[┬º┬ºconstant(31)][┬º┬ºconstant(32)](this[┬º┬ºconstant(12)]);
  49.    };
  50.    _loc2_[┬º┬ºconstant(33)] = function()
  51.    {
  52.       var _loc4_ = this[┬º┬ºconstant(34)]();
  53.       _global[┬º┬ºconstant(31)][┬º┬ºconstant(35)](this[┬º┬ºconstant(30)],_loc4_,1);
  54.       if(this[┬º┬ºconstant(21)][┬º┬ºconstant(36)] > 0)
  55.       {
  56.          this[┬º┬ºconstant(24)] += 40;
  57.          if(this[┬º┬ºconstant(24)] > this[┬º┬ºconstant(25)])
  58.          {
  59.             this[┬º┬ºconstant(24)] = 0;
  60.             this[┬º┬ºconstant(25)] = f[┬º┬ºconstant(27)][┬º┬ºconstant(28)][┬º┬ºconstant(29)](6000,20);
  61.             if(eval(┬º┬ºconstant(37))[┬º┬ºconstant(38)]() < 0.4)
  62.             {
  63.                var _loc3_ = this[┬º┬ºconstant(39)]();
  64.                if(_loc3_)
  65.                {
  66.                   _global[┬º┬ºconstant(31)][┬º┬ºconstant(42)](_loc3_[┬º┬ºconstant(41)],_loc3_[┬º┬ºconstant(40)]);
  67.                }
  68.             }
  69.          }
  70.       }
  71.       if(this[┬º┬ºconstant(19)][┬º┬ºconstant(36)] > 0)
  72.       {
  73.          if(_loc4_ > 0)
  74.          {
  75.             this[┬º┬ºconstant(43)] += 40;
  76.             if(this[┬º┬ºconstant(43)] > this[┬º┬ºconstant(44)])
  77.             {
  78.                this[┬º┬ºconstant(23)]();
  79.                var _loc5_ = f[┬º┬ºconstant(27)][┬º┬ºconstant(45)][┬º┬ºconstant(46)](this[┬º┬ºconstant(19)]);
  80.                var _loc6_ = _loc4_ / 100 * _loc5_[┬º┬ºconstant(40)];
  81.                _global[┬º┬ºconstant(31)][┬º┬ºconstant(42)](_loc5_[┬º┬ºconstant(41)],_loc6_);
  82.             }
  83.          }
  84.          else if(this[┬º┬ºconstant(43)] > 0)
  85.          {
  86.             this[┬º┬ºconstant(23)]();
  87.          }
  88.       }
  89.    };
  90.    _loc2_[┬º┬ºconstant(23)] = function()
  91.    {
  92.       this[┬º┬ºconstant(43)] = 0;
  93.       this[┬º┬ºconstant(44)] = f[┬º┬ºconstant(27)][┬º┬ºconstant(28)][┬º┬ºconstant(29)](6000,20);
  94.    };
  95.    _loc2_[┬º┬ºconstant(34)] = function()
  96.    {
  97.       var _loc8_ = undefined;
  98.       var _loc6_ = undefined;
  99.       var _loc7_ = this[┬º┬ºconstant(16)][┬º┬ºconstant(36)];
  100.       var _loc5_ = 0;
  101.       while(_loc5_ < _loc7_)
  102.       {
  103.          var _loc4_ = this[┬º┬ºconstant(16)][_loc5_];
  104.          var _loc3_ = f[┬º┬ºconstant(27)][┬º┬ºconstant(28)][┬º┬ºconstant(50)](_loc4_[┬º┬ºconstant(49)],_loc4_[┬º┬ºconstant(48)],_global[┬º┬ºconstant(47)][┬º┬ºconstant(49)],_global[┬º┬ºconstant(47)][┬º┬ºconstant(48)]);
  105.          if(_loc3_ < 1200)
  106.          {
  107.             if(_loc3_ < _loc6_ || _loc6_ == undefined)
  108.             {
  109.                _loc8_ = _loc4_;
  110.                _loc6_ = _loc3_;
  111.             }
  112.          }
  113.          _loc5_ = _loc5_ + 1;
  114.       }
  115.       if(_loc6_)
  116.       {
  117.          return this[┬º┬ºconstant(14)] - this[┬º┬ºconstant(14)] * _loc6_ / 1200;
  118.       }
  119.       return 0;
  120.    };
  121.    _loc2_[┬º┬ºconstant(39)] = function()
  122.    {
  123.       var _loc7_ = undefined;
  124.       var _loc6_ = undefined;
  125.       var _loc8_ = this[┬º┬ºconstant(21)][┬º┬ºconstant(36)];
  126.       var _loc5_ = 0;
  127.       while(_loc5_ < _loc8_)
  128.       {
  129.          var _loc4_ = this[┬º┬ºconstant(21)][_loc5_];
  130.          var _loc3_ = f[┬º┬ºconstant(27)][┬º┬ºconstant(28)][┬º┬ºconstant(50)](_loc4_[┬º┬ºconstant(51)][┬º┬ºconstant(49)],_loc4_[┬º┬ºconstant(51)][┬º┬ºconstant(48)],_global[┬º┬ºconstant(47)][┬º┬ºconstant(49)],_global[┬º┬ºconstant(47)][┬º┬ºconstant(48)]);
  131.          if(_loc3_ < 500)
  132.          {
  133.             if(_loc3_ < _loc6_ || _loc6_ == undefined)
  134.             {
  135.                _loc7_ = _loc4_;
  136.                _loc6_ = _loc3_;
  137.             }
  138.          }
  139.          _loc5_ = _loc5_ + 1;
  140.       }
  141.       if(_loc6_)
  142.       {
  143.          var _loc9_ = _loc7_[┬º┬ºconstant(40)] - _loc7_[┬º┬ºconstant(40)] * _loc6_ / 500;
  144.          return {┬º\┬º\┬ºconstant(41)┬º:_loc7_[┬º┬ºconstant(41)],┬º\┬º\┬ºconstant(40)┬º:_loc9_,┬º\┬º\┬ºconstant(52)┬º:_loc7_[┬º┬ºconstant(53)]};
  145.       }
  146.       return undefined;
  147.    };
  148.    ┬º┬ºpush(┬º┬ºconstant(54)(f.h[┬º┬ºconstant(4)][┬º┬ºconstant(6)],null,1));
  149. }
  150. §§pop();
  151.